package org.jeecg.modules.demo.weixin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 分账记录表
 * @Author: jeecg-boot
 * @Date:   2023-11-21
 * @Version: V1.0
 */
@Data
@TableName("smt_sharing_member")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="smt_sharing_member对象", description="分账记录表")
public class SmtSharingMember implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;
	/**微信订单号*/
	@Excel(name = "微信订单号", width = 15)
    @ApiModelProperty(value = "微信订单号")
    private String transactionId;
	/**分账金额  单位分 需要乘100*/
	@Excel(name = "分账金额  单位分 需要乘100", width = 15)
    @ApiModelProperty(value = "分账金额  单位分 需要乘100")
    private Integer amount;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**分账描述*/
	@Excel(name = "分账描述", width = 15)
    @ApiModelProperty(value = "分账描述")
    private String description;
	/**分账明细单号*/
	@Excel(name = "分账明细单号", width = 15)
    @ApiModelProperty(value = "分账明细单号")
    private String detailId;
	/**分账接收方类型*/
	@Excel(name = "分账接收方类型", width = 15)
    @ApiModelProperty(value = "分账接收方类型")
    private String type;
	/**分账金额*/
	@Excel(name = "分账金额", width = 15)
    @ApiModelProperty(value = "分账金额")
    private String account;
	/**分账完成时间*/
	@Excel(name = "分账完成时间", width = 15)
    @ApiModelProperty(value = "分账完成时间")
    private String finishTime;
	/**商户分账单号*/
	@Excel(name = "商户分账单号", width = 15)
    @ApiModelProperty(value = "商户分账单号")
    private String outOrderNo;
	/**分账单状态*/
	@Excel(name = "分账单状态", width = 15)
    @ApiModelProperty(value = "分账单状态")
    private String state;
	/**子商户号*/
	@Excel(name = "子商户号", width = 15)
    @ApiModelProperty(value = "子商户号")
    private String subMchid;
	/**子商户号*/
	@Excel(name = "子商户号", width = 15)
    @ApiModelProperty(value = "子商户号")
    private String orderId;
	/**分账失败原因*/
	@Excel(name = "分账失败原因", width = 15)
    @ApiModelProperty(value = "分账失败原因")
    private String failReason;
}
